<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/* Start of file administrator.php */
/* Location: ./dashboard/controllers/administrator.php */
class Administrator extends CI_Controller {
	
    function __construct(){
		parent::__construct(); /* function construct will determine all function */
		$this->load->module_model('setting','users'); /* Load Model from setting/models/userss */
    }
    
	public function index(){
		$this->ws->set('title',lang('dashboard')); /** title page */
        $this->ws->set('username',$this->session->userdata('username')); /** username session */
		$this->ws->set('department',$this->session->userdata('dep')); /** departement session */
        $this->ws->set('users',$this->users->getAllUser()); /** users models */
		$this->ws->set_theme('smooth'); /** set theme to smooth login */
		$this->ws->view('dashboard'); /** view layout dashboard, to views/dashboard*/
	}
}
/* Start of file administrator.php */
/* Location: ./dashboard/controllers/administrator.php */